import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "element-plus/theme-chalk/display.css";
import scui from "./scui";
import i18n from "./locales";
import router from "./router";
import store from "./store";
import App from "./App.vue";
import common from "./utils/common";
import $ from "jquery";
import emitter from "./utils/bus";
import { hiPrintPlugin } from "vue-plugin-hiprint";

const app = createApp(App);

app.use(store);
app.use(router);
app.use(ElementPlus);
app.use(i18n);
app.use(scui);
app.use(hiPrintPlugin, "$pluginName");

app.config.globalProperties.common = common;
app.config.globalProperties.$ = $;
app.config.globalProperties.emitter = emitter;

//挂载app
app.mount("#app");
